package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwPlatformAccountRoleMapper;
import com.ruoyi.system.domain.GwPlatformAccountRole;
import com.ruoyi.system.service.IGwPlatformAccountRoleService;

/**
 * 平台账号角色关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-26
 */
@Service
public class GwPlatformAccountRoleServiceImpl implements IGwPlatformAccountRoleService 
{
    @Autowired
    private GwPlatformAccountRoleMapper gwPlatformAccountRoleMapper;

    /**
     * 查询平台账号角色关联
     * 
     * @param id 平台账号角色关联主键
     * @return 平台账号角色关联
     */
    @Override
    public GwPlatformAccountRole selectGwPlatformAccountRoleById(String id)
    {
        return gwPlatformAccountRoleMapper.selectGwPlatformAccountRoleById(id);
    }

    /**
     * 查询平台账号角色关联列表
     * 
     * @param gwPlatformAccountRole 平台账号角色关联
     * @return 平台账号角色关联
     */
    @Override
    public List<GwPlatformAccountRole> selectGwPlatformAccountRoleList(GwPlatformAccountRole gwPlatformAccountRole)
    {
        return gwPlatformAccountRoleMapper.selectGwPlatformAccountRoleList(gwPlatformAccountRole);
    }

    /**
     * 新增平台账号角色关联
     * 
     * @param gwPlatformAccountRole 平台账号角色关联
     * @return 结果
     */
    @Override
    public int insertGwPlatformAccountRole(GwPlatformAccountRole gwPlatformAccountRole)
    {
        return gwPlatformAccountRoleMapper.insertGwPlatformAccountRole(gwPlatformAccountRole);
    }

    /**
     * 修改平台账号角色关联
     * 
     * @param gwPlatformAccountRole 平台账号角色关联
     * @return 结果
     */
    @Override
    public int updateGwPlatformAccountRole(GwPlatformAccountRole gwPlatformAccountRole)
    {
        return gwPlatformAccountRoleMapper.updateGwPlatformAccountRole(gwPlatformAccountRole);
    }

    /**
     * 批量删除平台账号角色关联
     * 
     * @param ids 需要删除的平台账号角色关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformAccountRoleByIds(String[] ids)
    {
        return gwPlatformAccountRoleMapper.deleteGwPlatformAccountRoleByIds(ids);
    }

    /**
     * 删除平台账号角色关联信息
     * 
     * @param id 平台账号角色关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformAccountRoleById(String id)
    {
        return gwPlatformAccountRoleMapper.deleteGwPlatformAccountRoleById(id);
    }
}
